home *** CD-ROM | disk | FTP | other *** search
- Here are a few simple tools that run identically or very similarly
- under msdos and unix.
-
- I am calling them ust1, Unix Style Tools. Couldn't come up with
- a better name.
-
- They have only minimally been tested under msdos and bsd4.2.
- MSC 3.0 was used under msdos.
- I did make an effort to make the code portable. They probably would
- run under a few other systems.
-
- Mail bug reports and problems to me. I'll re-post.
-
- expand:
- * Expand mimics Unix's expand. It is not a full implementation.
- * Does not support [-tab1,tab2,..,tabn].
- * Expand is a filter.
- * It processes the named files or the standard input.
- * It writes to standard output with tabs changed into blanks.
- *
- * Usages:
- * expand [-tabstop] [i_files]
- Back space can easily be added to it.
-
- dost2b:
- * dost2b is a filter.
- * dost2b processes i_files or the standard input.
- * dost2b writes to o_file or standard output.
- * Converts a DOS text file to binary file.
- * Replaces <cr><lf> to <lf>.
- *
- * Usages:
- * dost2b [-o] <o_file> <i_files>
-
- dosb2t:
- * dosb2t is a filter.
- * dosb2t processes i_files or the standard input.
- * dosb2t writes to o_file or standard output.
- * Converts a DOS binary file to text file.
- * Replaces <lf> with <cr><lf>.
- *
- * Usages:
- * dosb2t [-o] <o_file> <i_files>
-
- hxd:
- * hxd, Hexadecimal dump is similar unix's "od -x"
- * Displays the contents of a file in hexadecimal.
- * If a byte is printable, it is also printed.
- * For each in put file name of the file is first emited.
- * file: <i_file>
- * last line for each input file is length of the file in
- * "dec_add:hex_add" format.
- *
- * Usages:
- * hxd [-o] <o_file> <i_files>
- See Comments in hxd.c.
-
- which:
- * Tries to mimic Unix's which as closely as possible.
- *
- * Usages:
- * which <i_files>
- This is basically Larry Barello's which.
- For DOS .{com,exe,bat} are tested for existance.
- Only the first one that exists is printed.
- Internal DOS programs could later be added.
-
- crc16:
- This is basically Hugh Redelmeir's version.
- I needed to modify it so that it could also be
- used by sarch.
-
- sarch:
- * This is a simple archive utility program.
- * Sarch tries to only rely on the C stdio library functions.
- * When transferring multiple files between two machines that only have a
- * single file transfer utility, sarch becomes handy. Multiple files
- * are converted to a sinle file on one end, transfered to the other
- * machine and extracted to the original files at the destination.
- * System dependent features are very few, keeping it simple
- * and portable. Efficiency is sacrificed for portability.
- * CRCs are computed when updateing and when extracting.
- *
- * Usage:
- * sarch -{m,u,x,a,t} archname file1 .. filen
- * -m Print file names within the archive.
- * -u Add or update files to the archive.
- * -x Extract files from archive.
- * -a Extract all files from the rachive.
- * -t PCDOS related. When extracting, test mode is set.
- Sarch is NOT COMPLETE.
- I am posting it because it can be useful if used carefully.
- No flames on this one, please.
- I am also not happy with th command syntax.
- Only -u and -a work. As is, it is only useful for moving files
- around.
- sarch -u ar file1 filen , on one end.
- sarch -a ar , on the other end.
-
-
- FILES:
- mkp:
- Is a Csh script that runs make.
- It can be useful when you are supporting native and cross
- development. Some don't like it. I do.
- makefile:
- File dependencies only. Needs mkp.
- pcust1.bat:
- run this on the pc to create everything.
- mbstd.h:
- Standard Header I use.
- expand.c dost2b.c dosb2t.c hxd.c sarch.c which.c fcrc16.c crc16.c:
- C source files.
- readme.ut1:
- This file.
-
- TO RUN:
- bsd4.2
- first make mkp executable.
- mkp
- msdos, msc
- make sure that all headers and libraries are there.
- make sure ssetargv.obj is in current directory.
- run pcust1.bat
-